<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
use app\index\model\Conf as Confs;
use think\Cache;
use think\Config;
use think\db;
class Common extends Controller
{

    public function _initialize()
    {
        Cfg();      //全局变量加载
        if(config('conf.web_status') == '关闭'){
            $this->redirect('Login/off');

        }
        $seacher = ['key'=>''];
        if(!session('aid_admin')){
            //$this->redirect('Login/index');
        }
        $this->assign('seacher',$seacher);

    }



}